package behavioral.strategy;

public class Main {

    public static void main(String[] args) {
        IDiscount normalDiscount = new NormalDiscount();
        Price price1 = new Price(normalDiscount);
        IDiscount memberDiscount = new MemberDiscount();
        Price price2 = new Price(memberDiscount);
        IDiscount adminDiscount = new AdminDiscount();
        Price price3 = new Price(adminDiscount);
        System.out.println("普通折扣价：" + price1.getPrice(100));
        System.out.println("会员折扣价：" + price2.getPrice(100));
        System.out.println("内部折扣价：" + price3.getPrice(100));
    }
}
